package com.ld.security.server.admin.modules.ge.vo;

import com.ld.security.common.core.base.SuperPo;
import com.ld.security.common.core.base.SuperVo;
import com.ld.security.common.mybatis.anno.QueryKey;
import com.ld.security.common.mybatis.anno.RemoveKey;
import com.ld.security.common.mybatis.anno.SaveKey;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.server.admin.modules.ge.entity.GeFuncTelEntity;
import com.ld.security.server.admin.modules.ge.entity.GeModelTelEntity;
import com.ld.security.server.admin.modules.ge.entity.GeViewTelEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 视图模板修改
 */
@Data
public class ViewTelSaveVo implements SuperVo,SuperPo {

    private String id;

    @ApiModelProperty("模板")
    @NotNull
    @RemoveKey
    @SaveKey
    @QueryKey
    @SqlKey(name = "id",valueField = "id")
    private GeViewTelEntity viewTel;

    @ApiModelProperty("模型模板")
    @NotNull
    @RemoveKey
    @SaveKey(name = "viewTelId",valueField = "viewTel.id")
    @SqlKey(name = "viewTelId",valueField = "viewTel.id")
    @QueryKey
    private List<GeModelTelEntity> modelTels;

    @ApiModelProperty("函数模板")
    @RemoveKey
    @SaveKey(name = "viewTelId",valueField = "viewTel.id")
    @SqlKey(name = "viewTelId",valueField = "viewTel.id")
    @QueryKey
    private List<GeFuncTelEntity> funcTels;

}
